table.FIELD_INFO_DUMP Function
Syntax
Field_List as C = Table.Field_Info_Dump(C format )
Arguments
- Field_List
A CR-LF delimited list of field names and information about those fields.
- format
A character, numeric, logical, or date data display format. Options are:
- "n" = field name
- "N" = uppercased field name
- "t" = simple field type
- "T" = full field type
- "W" = field width
- "D" = field decimal
- "R" = field rule (INCREMENT/CALCULATED=<EXPRESSION>)
Description
Displays a CRLF delimited list of info about fields in the table. Format is same format as 'table.external_field_name_get()'
Discussion
The <TBL>.FIELD_INFO_DUMP() method returns a CR-LF delimited string of information (such as field name, type, and size) about a table. Note: The <TBL>.FIELD_INFO_DUMP() method has the same functionality as TABLE.EXTERNAL_FIELD_INFO_GET(), except that the latter takes a table name instead of a table pointer.
Example
dim tbl as P tbl = table.open("customer") ? tbl.Field_Info_Dump("n,t,W") = CUSTOMER_ID,C,8 FIRSTNAME,C,20 LASTNAME,C,20 COMPANY,C,32 PHONE,C,20 FAX,C,20 BILL_ADDRESS_1,C,40 BILL_ADDRESS_2,C,40 BILL_CITY,C,20 BILL_STATE_REGION,C,20 BILL_POSTAL_CODE,C,10 BILL_COUNTRY,C,20 SHIP_ADDRESS_1,C,40 SHIP_ADDRESS_2,C,40 SHIP_CITY,C,20 SHIP_STATE_REGION,C,20 SHIP_POSTAL_CODE,C,10 SHIP_COUNTRY,C,20 SHIP_SAME,L,1 EMAIL,C,60 RTFMEMO,M,10 MEMO,M,10
See Also